package com.onlyoffice.demo.findproblem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("game_level")
@EqualsAndHashCode(callSuper = false)
public class GameLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关卡标题
     */
    private String title;

    /**
     * 图片URL
     */
    private String imageUrl;

    /**
     * 难度等级
     */
    private Integer difficulty;

    /**
     * 错误点数量
     */
    private Integer totalSpots;

    /**
     * 时间限制
     */
    private Integer timeLimit;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 错误点
     */
    @TableField(exist = false)
    private List<ErrorSpot> errorSpots;
}
